<template>
  <div class="not-found-container">
    <div class="not-found-content">
      <h1>404</h1>
      <h2>页面未找到</h2>
      <p>抱歉，您访问的页面不存在</p>
      <el-button type="primary" size="large" @click="goHome">
        返回首页
      </el-button>
    </div>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router';

const router = useRouter();

const goHome = () => {
  router.push('/');
};
</script>

<style scoped lang="scss">
.not-found-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.not-found-content {
  text-align: center;
  color: white;

  h1 {
    font-size: 120px;
    font-weight: bold;
    margin: 0;
    line-height: 1;
  }

  h2 {
    font-size: 32px;
    font-weight: 500;
    margin: 20px 0 10px;
  }

  p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.9;
  }
}

@media (max-width: 768px) {
  .not-found-content {
    h1 {
      font-size: 80px;
    }

    h2 {
      font-size: 24px;
    }
  }
}
</style>